int speakerOut = 4;
int ledPin = 9;

void setup(void) {
  // initialize inputs/outputs
  // start serial port
  pinMode(speakerOut,OUTPUT);
  pinMode(ledPin, OUTPUT);
  Serial.begin(9600);
}

void loop(void)
{
   //int sensorValue = analogRead(0);
   //Serial.println(sensorValue, DEC);
   digitalWrite(ledPin,HIGH);  

   int burst = 0;
   int length = 0;
   
   int Tone = 200;
   
       // create a buzz noise
    while (burst<6) {
	while (length<76){
	  digitalWrite(speakerOut,HIGH);
	  delayMicroseconds(Tone);
	  digitalWrite(speakerOut, LOW);
	  delayMicroseconds(Tone);
	  length=length+1;
	}
	delay (65);
	length = 0;
	burst = burst+1;
    }
    burst = 0; // reset for next pass
 

}
